package cn.kgc.entity;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class AQIndex {

  private long id;
  private long districtId;
//  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String monitorTime;
  private long pm10;
  private long pm25;
  private String monitoringStation;
//  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String lastModifyTime;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getDistrictId() {
    return districtId;
  }

  public void setDistrictId(long districtId) {
    this.districtId = districtId;
  }

  public String getMonitorTime() {
    return monitorTime;
  }

  public void setMonitorTime(String monitorTime) {
    this.monitorTime = monitorTime;
  }

  public long getPm10() {
    return pm10;
  }

  public void setPm10(long pm10) {
    this.pm10 = pm10;
  }

  public long getPm25() {
    return pm25;
  }

  public void setPm25(long pm25) {
    this.pm25 = pm25;
  }

  public String getMonitoringStation() {
    return monitoringStation;
  }

  public void setMonitoringStation(String monitoringStation) {
    this.monitoringStation = monitoringStation;
  }

  public String getLastModifyTime() {
    return lastModifyTime;
  }

  public void setLastModifyTime(String lastModifyTime) {
    this.lastModifyTime = lastModifyTime;
  }

  @Override
  public String toString() {
    return "AQIndex{" +
            "id=" + id +
            ", districtId=" + districtId +
            ", monitorTime=" + monitorTime +
            ", pm10=" + pm10 +
            ", pm25=" + pm25 +
            ", monitoringStation='" + monitoringStation + '\'' +
            ", lastModifyTime=" + lastModifyTime +
            '}';
  }
}
